import request from '@/utils/request'

// 查询出库单列表
export function listBill(query) {
  return request({
    url: '/inv/inv0005/list',
    method: 'get',
    params: query
  })
}

// 查询出库单详细
export function getBill(id) {
  return request({
    url: '/inv/inv0005/' + id,
    method: 'get'
  })
}

// 新增出库单
export function addBill(data) {
  return request({
    url: '/inv/inv0005/addBill',
    method: 'post',
    data: data
  })
}

// 修改出库单
export function updateBill(data) {
  return request({
    url: '/inv/inv0005/updateBill',
    method: 'post',
    data: data
  })
}

// 删除出库单
export function delBill(id) {
  return request({
    url: '/inv/inv0005' + id,
    method: 'delete'
  })
}


export function getInvDataList(data) {
  return request({
    url: '/inv/inv0005/getInvDataList',
    method: 'post',
    data: data
  })
}


export function getInfo(data) {
  return request({
    url: '/inv/inv0005/getInfo',
    method: 'post',
    data: data
  })
}

export function delItem(data) {
  return request({
    url: '/inv/inv0005/delItem',
    method: 'post',
    data: data
  })
}

export function checkInvQty(data) {
  return request({
    url: '/inv/inv0005/checkInvQty',
    method: 'post',
    data: data
  })
}

export function executeOut(data) {
  return request({
    url: '/inv/inv0005/executeOut',
    method: 'post',
    data: data
  })
}

export function viewCKBillById(data) {
  return request({
    url: '/inv/inv0005/viewCKBillById',
    method: 'post',
    data: data
  })
}

export function getApplys(data) {
  return request({
    url: '/inv/inv0005/getApplys',
    method: 'post',
    data: data
  })
}

// 修改出库单
export function updateBillStatus(data) {
  return request({
    url: '/inv/inv0005/updateBillStatus',
    method: 'post',
    data: data
  })
}


